<{include file="public_html/header.html"}>
<{include file="public_html/left_menu.html"}>
<div id="content" class="span10">
	<div class="row-fluid sortable">		
		<div class="box span12">
			<div class="box-header well" data-original-title>
				<h2><{$action}></h2>
			</div>
			<div class="box-content">
				<form class="form-horizontal" method="post" action="<{$current_url}>">
					<input type="text" placeholder="角色名称" name="category[search]" value="<{if isset($conditions['search']) AND $conditions['search']}><{$conditions['search']}><{/if}>" aria-controls="DataTables_Table_0">
					<button type="submit" class="btn btn-primary">搜索</button>
				</form>
				<form class="form-horizontal" method="post" action="" delete_action="/role/delete">
				<table class="table table-striped table-bordered bootstrap-datatable datatable">
                        <colgroup>
                            <col width="80"/>
                            <col width="300" />
                            <col />
                            <col width="230" />
                        </colgroup>
				  	<thead>
					  	<tr>
						  	<th>ID</th>
						  	<th>角色名称</th>
						  	<th>角色权限</th>
						  	<th>操作</th>
					  	</tr>
				  	</thead>   
				  	<tbody>
				  	<{foreach from=$role_list item=item}>
					  	<tr>
					  		<td class="center">
								<input type="checkbox" name="ids[]" value="<{$item['id']}>"  title="<{$item['id']}>">
					  		</td>
					  		<td class="center"><{$item['role_name']}></td>
					  		<td class="center"><{$item['role_privilege']}></td>
					  		<td class="center">
								<a class="btn btn-success" href="/role/view/<{$item['id']}>">
									<i class="icon-zoom-in icon-white"></i>  
									查看                                            
								</a>
								<a class="btn btn-info edit_link" href="/role/edit/<{$item['id']}>" target="_blank">
									<i class="icon-edit icon-white"></i>  
									编辑                                            
								</a>
								<a class="btn btn-danger delete_data" href="/role/delete/<{$item['id']}>">
									<i class="icon-trash icon-white"></i> 
									删除
								</a>
							</td>
					  	</tr>
				  	<{/foreach}>
				  	<{if $role_list|count eq 0}>
				  		<tr>
					  		<td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="8">
								赞无数据！
							</td>
					  	</tr>
				  	<{/if}>
				  	<tr>
						<td class="center" colspan="13">
							<input type="checkbox" lay-filter="checkbox_all" title="全选">
							<button id="delete" class="layui-btn layui-btn-primary layui-btn-small" style="margin-top:4px;"><i class="layui-icon"></i> 批量删除</button>
						</td>
					</tr>
			  		</tbody>
			  	</table>    
			  	</form> 
			  	<div class="row-fluid">
			  		<div class="span12 center">
				  		<div class="dataTables_paginate paging_bootstrap pagination">
				  			<{$pagination}>
				  		</div>
			  		</div>
			  	</div>       
			</div>
		</div><!--/span-->
	</div>
	</div><!--/row-->
</div><!--/row-->
<{include file="public_html/footer.html"}>